package com.ihtry.service;

import com.ihtry.pojo.Book;

import java.util.List;

public interface BookService {
    //增加 insert

    public boolean addBook(Book book);

    //删除 delete

    public boolean deleteBook(Integer id);

    //更改 update

    public boolean updateBook(Book book);

    //查询 select

    public List<Book> getAll();

    //通过id查询

    public Book getBookById(Integer id);

}